package com.ruoyi.technicianAudit.mapper;

import com.ruoyi.technicianAudit.domain.Recruitment;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * 技师申请Mapper接口
 * 
 * @author ruoyi
 * @date 2025-04-07
 */
public interface RecruitmentMapper 
{
    /**
     * 查询技师申请
     * 
     * @param id 技师申请主键
     * @return 技师申请
     */
    public Recruitment selectRecruitmentById(Long id);

    /**
     * 查询技师申请列表
     * 
     * @param recruitment 技师申请
     * @return 技师申请集合
     */
    public List<Recruitment> selectRecruitmentList(Recruitment recruitment);

    /**
     * 新增技师申请
     * 
     * @param recruitment 技师申请
     * @return 结果
     */
    public int insertRecruitment(Recruitment recruitment);

    /**
     * 修改技师申请
     * 
     * @param recruitment 技师申请
     * @return 结果
     */
    public int updateRecruitment(Recruitment recruitment);

    /**
     * 删除技师申请
     * 
     * @param id 技师申请主键
     * @return 结果
     */
    public int deleteRecruitmentById(Long id);

    /**
     * 批量删除技师申请
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteRecruitmentByIds(Long[] ids);

    @Select("select user_id from t_recruitment where user_id is not null and audit_status =0")
    List<Long> selectUserId();
}
